/**
 * 
 */
package fr.gfi.agraf.vue.action.login;

import java.util.Map;

import org.apache.struts2.interceptor.SessionAware;

import com.opensymphony.xwork2.ActionSupport;

/**
 * @author Fw
 *
 */
public class LogoutAction extends ActionSupport implements SessionAware {

	/**
	 * Généré par Java
	 */
	private static final long serialVersionUID = -8687112939254228932L;
	
	private Map<String, Object> session;
	
	/* (non-Javadoc)
	 * @see com.opensymphony.xwork2.ActionSupport#execute()
	 */
	@Override
	public String execute(){
		session.clear();
		return SUCCESS;
	}
	
	/* (non-Javadoc)
	 * @see org.apache.struts2.interceptor.SessionAware#setSession(java.util.Map)
	 */
	public void setSession(final Map<String, Object> session) {
		this.session = session;
	}

}
